<?php

function &PageNewGrab() {
    $returnArray = array(
        'titel'         => '聊天室',
        'head'          => '',
        'body'          => '',
    );
    return $returnArray;
}

function HtmlEcho($pPage) {
    // Send Headers + main HTML code
	Header( 'Cache-Control: no-cache, must-revalidate');   // HTTP/1.1
	Header( 'Content-Type: text/html;charset=utf-8' );     // TODO- proper XHTML headers...
	Header( 'Expires: Tue, 23 Jun 2009 12:00:00 GMT' );    // Date in the past

    echo "
    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
		<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
		<title>{$pPage[ 'title' ]}</title>
        {$pPage[ 'head' ]}
	</head>
    <body class=\"home\">
        {$pPage[ 'body' ]}
	</body>
    </html>";
}

?>
